<!-- {include file="header.html"} -->
<div id="currentPosition">
	<p>{lang your_current_position} {lang member_center} &raquo; {lang membergroup}</p>
</div>
<div id="rightTop"> 
    <h3>{lang membergroup}</h3> 
    <ul class="subnav">
		<li><a href="membergroup.php" id="all"><span>{lang the_all} {lang membergroup}</span></a></li>
        <li><a href="membergroup.php?type=system" id="system">{lang system} {lang membergroup}</a></li>
        <li><a href="membergroup.php?type=define" id="define">{lang customize} {lang membergroup}</a></li>
        <li><a href="membergroup.php?type=special" id="special">{lang special} {lang membergroup}</a></li>
        <li><a href="membergroup.php?do=edit" id="edit">{lang add_or_edit}</a></li>
        <li><a href="membergroup.php?do=permission" id="permission">{lang permissions}</a></li>
    </ul>
</div>
<div class="mrightTop"> 
    <div class="fontl">
             <div class="left">{lang custom_membership_groups}</div>
    </div> 
    <div class="fontr"></div> 
</div> 
<div class="tdare">
  <form name="list_frm" id="ListFrm" action="" method="post">
  <table width="100%" cellspacing="0" class="dataTable" summary="{lang data_zone}">
    <thead>
		<tr>
		  <th class="firstCell"><input type="checkbox" name="idAll" id="idAll" onclick="pbCheckAll(this,'gid[]');" title="{lang select_switch}"></th>
		  <th><label for="idAll">{lang naming}</label></th>
		  <th>{lang default}</th>
		  {if $MembergroupType=="system"}<th>{lang integral_between}</th>{/if}
		  <th>{lang screenshot}</th>
		  <th>{lang action}</th>
		</tr>
    </thead>
    <tbody>
		<!--{foreach from=$Items item=item name=membergroup}-->
		<tr class="tatr2">
		  <td class="firstCell">
          <input type="checkbox" name="gid[]" value="{$item.id}" onclick="pbCheckItem(this,'idAll');" id="item_{$item.id}" title="{$item.id}">
          <input type="hidden" name="id[]" value="{$item.id}" title="{$item.id}">
          </td>
		  <td><label for="item_{$item.id}"><input type="text" name="name[]" value="{$item.name}" id="dataMembergroupName{$item.id}" /></label></td>
		  <td>{if $item.is_default==1}<img src="images/right.gif" />{/if}</td>
		  {if $MembergroupType=="system"}<td><input type="text" name="point_min[]" size="5" value="{$item.point_min}" /> ~ <input type="text" name="point_max[]" size="5" value="{$item.point_max}" disabled="disabled" /></td>{/if}
		  <td><input type="text" name="picture[]" value="{$item.avatar}" class="infoTableInput" />&nbsp;<img src="{$item.image}" border="0" alt="{$item.name}" /></td>
		  <td class="handler">
              <ul id="handler_icon">
                <li><a class="btn_delete" href="membergroup.php?do=del&id={$item.id}" title="{lang delete}">{lang delete}</a></li>
                <li><a class="btn_edit" href="membergroup.php?do=edit&id={$item.id}" title="{lang edit}" >{lang edit}</a></li>
              </ul>
		 </td>
		</tr>
		<!--{foreachelse}-->
		<tr class="no_data info">
		  <td colspan="6">{lang no_datas}</td>
		</tr>
		<!--{/foreach}-->
    </tbody>
	</table>
	<div id="dataFuncs" title="{lang action_zone}">
    <div class="left paddingT15" id="batchAction">
		<input type="submit" name="save_data" value="{lang save}" class="formbtn batchButton"/>
		<input type="submit" name="del" value="{lang delete}" class="formbtn batchButton"/>
		<input type="submit" name="updateDefault" value="{lang setting}{lang default}" class="formbtn batchButton"/>
    </div>
    <div class="pageLinks"/>
    <div class="clear"/>
    </div>
	</form>
</div>
<script>
var selected = "{$smarty.get.type|default:'all'}";
</script>
<!--{literal}-->
<script>
$(function(){
	if($("#"+selected).length>0){
		$("#"+selected).addClass("btn1");
	}
});
</script>
<!--{/literal}-->
<!-- {include file="footer.html"} -->